

import request from '@/utils/request'

export function saveManufactureOrder(data) {
  return request({
    url: '/api/mes/order/save',
    method: 'post',
    data
  })
}

export function getBomAndTechniqueAndTemplate(data) {
  return request({
    url: '/api/mes/order/get_bom_technique_template',
    method: 'post',
    data
  })
}

export function pageManufactureOrder(data) {
  return request({
    url: '/api/mes/order/page',
    method: 'post',
    data
  })
}

export function orderListPreOptions() {
  return request({
    url: '/api/mes/order/list_pre_options',
    method: 'get'
  })
}

/**
 * @description: 生产交付
 * @param {*} data
 * @return {*}
 */
export function updateManufactureOrder(data) {
  return request({
    url: '/api/mes/order/update',
    method: 'post',
    data
  })
}
